/**
 * Created by Administrator on 2017/6/13.
 */
angular
    .module('myApp', [])
    .controller('MyController', function ($scope,$http) {
        $scope.name = '朱明宇';
        var array = [1,2,3,4,5,6,7,8,9,10,11,12,13];
        console.log(array.slice(15,20));
        $scope.getNetData = function () {
                $http(
                    {
                        method : 'GET',
                        url : 'http://www.runoob.com/try/angularjs/data/sites.php'
                    }
                )
                    .then(function success(res) {
                        console.log('success')
                        console.log(res)
                    },function fail(res) {
                        console.log('fail')
                        console.log(res)
                    });
        }
    });